@echo off
echo 正在删除旧的dist目录...
if exist dist rmdir /s /q dist
echo 正在安装依赖...
call npm install
echo 正在编译TypeScript...
call npx tsc
echo 检查dist目录是否已生成...
if exist dist (
  echo 编译成功，dist目录已创建
  dir dist
) else (
  echo 编译失败，未找到dist目录
)
pause
